<?php

use App\Admin\Repositories\Business;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('servicePersonnel', 'ServicePersonnelController');
    $router->resource('serviceProject', 'ServiceProjectController');
    $router->resource('option', 'OptionController');
    $router->resource('order', 'OrderController');
    $router->resource('business', 'BusinessController');
    $router->any('files/files', 'FileController@handle');
});
